<?php
namespace handler;

use com\penngo\User;
use com\penngo\LoginServiceIf;
class LoginServiceHandler implements LoginServiceIf {
    public function login($name, $psw){
        $user = new User();
        if($name == 'penngo' && $psw == '123'){
            $user->id = 1;
            $user->name = 'penngo';
        }
        return $user;
    }
};
?>